<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文艺小站 | 登录</title>
    <style>
        .nav {
            background: rgba(255, 255, 255, 0.9);
            padding: 1rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .nav ul {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 2rem;
        }

        .nav a {
            text-decoration: none;
            color: #e67a7a;
            font-size: 1.1rem;
            transition: color 0.3s;
        }

        .nav a:hover {
            color: #d65353;
        }

        .login-form {
            max-width: 400px;
            margin: 3rem auto;
            padding: 2rem;
            background: white;
            border-radius: 10px;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        label {
            display: block;
            margin-bottom: 0.5rem;
            color: #e67a7a;
        }

        input {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ffe6f2;
            border-radius: 5px;
            font-size: 1rem;
        }

        input:focus {
            outline: 2px solid #e67a7a;
        }

        .submit-btn {
            width: 100%;
            padding: 1rem;
            background: #e67a7a;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .submit-btn:hover {
            background: #d65353;
        }
    </style>
</head>

<body>
    <nav class="nav">
        <ul>
            <li><a href="index.html">首页</a></li>
            <li><a href="Login.html">登录</a></li>
            <li><a href="content.html">内容</a></li>
            <li><a href="/a/b/c/d.html">测试404</a></li>
            <li><a href="/redir">测试重定向</a></li>
        </ul>
    </nav>

    <div class="container">
        <!-- form表单默认的提交方式是GET方法 -->
        <!-- <form class="login-form"> -->
        <form class="login-form" action="./login" method="post">
            <h1 style="text-align: center; margin-bottom: 2rem;">用户登录</h1>
            <div class="form-group">
                <label>用户名</label>
                <input type="text" name="username" >
            </div>
            <div class="form-group">
                <label>密码</label>
                <input type="password" name="userpassword">
            </div>
            <button type="submit" class="submit-btn">立即登录</button>
        </form>
    </div>
</body>

</html>